using UnityEngine;
using UnityEditor;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
public class ParseBoxCollider : ParseObjectHandle<BoxCollider>
{
    public override void Prase(ExportSetting ExportSetting, BoxCollider obj, JArray jArray)
    {
        var ccBoxCollider = ExportSetting.CocosObjectConfig["cc.BoxCollider"].DeepClone();
        ccBoxCollider["_center"] = AssetHelper.TransforCCObject(obj.center);
        ccBoxCollider["_center"]["x"] = -(float)ccBoxCollider["_center"]["x"];
        ccBoxCollider["_size"] = AssetHelper.TransforCCObject(obj.size);
        ccBoxCollider["_isTrigger"] = obj.isTrigger;
        jArray.Add(ccBoxCollider);
    }
}
